dofile (getScriptPath() .. "\\..\\patterns\\spy.lua")

--dofile (getScriptPath() .. "\\..\\patterns\\gap.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\gc.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\ticks.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\headoff.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\move.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\freeze.lua")
--dofile (getScriptPath() .. "\\..\\patterns\\jet.lua")
dofile (getScriptPath() .. "\\..\\patterns\\press.lua")

script_name = string.gsub(string.gsub(debug.getinfo(1).short_src, "%.[^%.]*$", ""), "^.*[\\/]", "")
processor.ds.threads_number = 4

processor:AddInit(function()
	--handlers[INTERVAL_TICK] = {ticks = ticks.tick}
	spy.handlers[INTERVAL_M1] = {
		--headoff = pattern.headoff.OnCandle,
		--move = pattern.move.OnCandle
		--compression = pattern.compression.OnCandle
		--, jet = pattern.jet.OnCandle
	}
	
	for k, v in pairs(pattern) do
		if v.OnCandle then
			for int, funcs in pairs(spy.handlers) do
				table.insert(funcs, v.OnCandle)
			end
		end
	end
	
	--handlers[INTERVAL_M1] = {ticks = ticks.m1, headoff = pattern.headoff.OnCandle}
	--handlers[INTERVAL_M5] = {gc = pattern.gc.OnData}
	
	--callbacks[INTERVAL_TICK] = {pressure = ticks.callback}
end)

processor:AddInit(function()
	--processor:SetTimer(500)
end)
	
